<div class="content">
    <div class="div-top">
        <span style="font-size: 20px;float:left;">{{menu_name}}</span>
        <div style="float:right;">
            <button ng-repeat="but in buttons" ng-click="operate(but.event)" class="btn btn-{{but.style}}"><i class="iconfont {{but.img}}"></i>&nbsp;{{but.name}}</button>
        </div>
    </div>

    <form class="div-find form-inline" >
        <div class="form-group">
            <label class="form-label">学生：</label>
            <input ng-model="form.name" type="text" class="form-control" placeholder="学生姓名"/>
        </div>
        <div class="form-group">
            <label class="form-label">学籍状态：</label>
            <select class="form-control" ng-options="xjzt.id as xjzt.name for xjzt in xjztList" ng-model="form.student_status">
                <option value="">==请选择==</option>
            </select>
        </div>
        <div class="form-group">
            <label class="form-label">年级：</label>
            <select class="form-control" ng-options="grade.id as grade.name for grade in gradeList" ng-model="form.fk_grade" ng-change="findMajor()">
                <option value="">==请选择==</option>
            </select>
        </div>
        <div class="form-group">
            <label class="form-label">专业：</label>
            <select class="form-control" ng-options="major.id as major.name for major in majorList" ng-model="form.fk_major" ng-change="findClass()">
                <option value="">==请选择==</option>
            </select>
        </div>
        <div class="form-group">
            <label class="form-label">班级：</label>
            <select class="form-control" ng-options="class.id as class.name for class in classList" ng-model="form.fk_class">
                <option value="">==请选择==</option>
            </select>
        </div>
        <div class="form-group">
            <label class="form-label">异动类型：</label>
            <select class="form-control" ng-options="ydlb.id as ydlb.name for ydlb in ydlbList" ng-model="form.reshuffle_type">
                <option value="">==请选择==</option>
            </select>
        </div>
        <button ng-click="select()" type="submit" class="btn btn-secondary"><i class="iconfont icon-search"></i>&nbsp;查询</button>
    </form>

    <div class="div-table">
        <table class="table table-hover table-bordered">
            <thead>
            <tr>
                <th class="table-th-checkbox" ><input type="checkbox" ng-click="checkAll($event.target)" /></th>
                <th column="name" class="sorting" ng-click="order($event.target)">学生账号</th>
                <th column="id_card" class="sorting" ng-click="order($event.target)">年级</th>
                <th column="xjzh" class="sorting" ng-click="order($event.target)">专业</th>
                <th column="grade_sort" class="sorting" ng-click="order($event.target)">班级名称</th>
                <th column="class_sort" class="sorting" ng-click="order($event.target)">姓名</th>
                <th column="status" class="sorting" ng-click="order($event.target)">异动类型</th>
                <th column="status" class="sorting" ng-click="order($event.target)">异动日期</th>
                <th column="status" class="sorting" ng-click="order($event.target)">是否生效</th>
                <th column="status" class="sorting" ng-click="order($event.target)">操作</th>
            </tr>
            </thead>

            <tbody ng-switch on="page.current_num">
            <tr ng-switch-when="0">
                <td colspan="100" >查询无记录</td>
            </tr>
            <tr ng-repeat="row in rows" ng-click="optData($event.currentTarget)">
                <td>
                    <input type="checkbox" name="dataPk" value="{{row.id}}" />
                </td>
                <td>{{row.student_xh}}</td>
                <td>{{row.grade_name}}</td>
                <td>{{row.major_name}}</td>
                <td>{{row.class_name}}</td>
                <td>{{row.student_name}}</td>
                <td>{{row.type_name}}</td>
                <td>{{row.reshuffle_date}}</td>
                <td>
                    <span ng-if="row.is_valid =='0'">是</span>
                    <span ng-if="row.is_valid =='1'">否</span>
                </td>
                <td>
                    <button type="button" ng-click="detail(row)" class="btn btn-link">
                        <i class="fe fe-bar-chart-2"></i>详情
                    </button>

                </td>
            </tr>
            </tbody>
        </table>
    </div>
    <div ng-include="'plugin/frame/3.0.1/html/page.html'" class="div-page" ></div>
</div>